package com.xiaozhichao.javaapi.designpattern.observer.model.java;

import java.util.Observer;

public class Test {
    public static void main(String[] args) {
        Observer observer = new User("Tom");
        WechatServer wechatServer = new WechatServer();
        wechatServer.addObserver(observer);
        wechatServer.change("绝密消息");
    }
}
